<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var score = 50;
        switch(true){

            case score >= 60:
                 console.log("合格");
                 break;
            
            //不需要每个都写console.log，只需要在最下面写一个 
            default: 
                 console.log("不合格");
                 break;
        }
    </script>
</head>
<body>
    
</body>
</html>